package models;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by xieyicheng on 2015/1/22.
 */
@Entity
@Table(name = "mail")
public class Mail extends BasicModel {

    //已发送和已接收
    public final static int SENDED=1;
    public final static int RECEIVED=0;

    // 发件人id
    @Column(name = "send_id")
    public String send_id;

    // 收件人id
    @Column(name = "receive_id")
    public String receive_id;
    
    //发送人删除标志
    @Column(name = "is_send_delete",columnDefinition = "int default 0")
    public int is_send_delete;
    
    //接收人删除标志
    @Column(name = "is_receive_delete",columnDefinition = "int default 0")
    public int is_receive_delete;

    // 存富文本内容
    @Column(name = "content", columnDefinition = "text")
    public String content;

    // 标题
    @Column(name = "title")
    public String title;

    // 状态
    @Column(name = "status")
    public int status;

}
